package net.easyjava.third.rongcloud.rong.models;


import net.easyjava.third.rongcloud.rong.util.GsonUtil;

//命令消息
public class CmdMessage extends Message {

	private static final long serialVersionUID = -2318793099071928977L;
	private String name;
	private String data;


	public CmdMessage(String data) {
		this.type = "RC:CmdMsg";
		this.data = data;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return GsonUtil.toJson(this, CmdMessage.class);
	}
}
